<?php
include_once '../models/diplome.php';
?>
<html>
<head>
<title> Inscription</title>
</head>
<form method="POST" action="../index.php?action=inscription" enctype="multipart/form-data">
    <fieldset>
    <p>
    <label for="nom"> Nom:</label>
    <input type="text" name="nom" id="nom"/>
    </p>
    <p>
    <label for="prenom"> Pr&eacute;nom:</label>
    <input type="text" name="prenom" id="prenom"/>
    </p>
     <p>
    <label for="diplome"> Dipl&ocirc;me:</label>
    <select name="diplome" id="diplome">
    <?php
    $diplome_lst = Diplome::get_diplome_list();
    foreach($diplome_lst as $diplome) {
    ?>
    <option value="<?php echo $diplome->id; ?>"><?php echo $diplome->master." ".$diplome->promotion." alternance:".$diplome->alternance; ?></option>
    <?php } ?>
    </select>
    </p>
    
     <p>
    <label for="entreprise"> Entreprise:</label>
    	<input type="text" name="entreprise" id="entreprise"/>
    </p>
     <p>
    <label for="poste"> Poste:</label>
    	<input type="text" name="poste" id="poste"/>
    </p>
     <p>
    <label for="commentaire"> Commentaire:</label>
    	<input type="text" name="commentaire" id="commentaire"/>
    </p>
    
    <p>
       <label for="photo">Image : </label>
       <input type="file" name="photo" id="photo" />
    </p>
    <p>
       <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $taille_max; ?>" />
       <input type="submit" name="envoi" value="Envoyer l'image" />
    </p>
    </fieldset>
</form>
</html>